package com.ruoyi.business.approvalflow.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.business.approvalflow.domain.TRegisterApprovalLevelConfig;
import com.ruoyi.business.approvalflow.mapper.TRegisterApprovalLevelConfigMapper;
import com.ruoyi.business.approvalflow.service.ITRegisterApprovalLevelConfigService;
import com.ruoyi.business.approvalflow.vo.TRegisterApprovalLevelConfigVo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 审批级别配置Service业务层处理
 *
 * @author Tellsea
 * @date 2025-06-22
 */
@Service
public class TRegisterApprovalLevelConfigServiceImpl extends ServiceImpl<TRegisterApprovalLevelConfigMapper, TRegisterApprovalLevelConfig> implements ITRegisterApprovalLevelConfigService {

    @Override
    public TableDataInfo<TRegisterApprovalLevelConfigVo> queryList(TRegisterApprovalLevelConfigVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TRegisterApprovalLevelConfigVo> queryAll(TRegisterApprovalLevelConfigVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TRegisterApprovalLevelConfigVo queryById(String levelId) {
        return this.baseMapper.queryById(levelId);
    }
}
